import { post } from "./utils/methods";
const prefix = "/v1.0/earthEditorPage";

export default {
  getRoleList: (params: any) => {
    return post(`${prefix}/roleList`, params);
  },

  getPageList: (params: any) => {
    return post(`${prefix}/list`, params);
  },

  createNewPage: (params: any) => {
    return post(`${prefix}/create`, params);
  },

  deletePage: (params: any) => {
    return post(`${prefix}/delete`, params);
  },

  updatePage: (params: any) => {
    return post(`${prefix}/update`, params);
  },

  getPageInfo: (params: any) => {
    return post(`${prefix}/detail`, params);
  },

  copyPage: (params: any) => {
    return post(`${prefix}/copy`, params);
  },
};
